<?php

function greengar_remove_friend($friend_guid, $user_guid, $app, $pending) {
    $relationship = get_relationship($app, $pending);
    greengar_remove_entity_relationship($friend_guid, $relationship, $user_guid);
    greengar_remove_entity_relationship($user_guid, $relationship, $friend_guid);
}

?>